<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>{% block title %} {{ config.plog_title|escape }} {% endblock %}</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		<meta name="generator" content="plog on GAE" />
		{% block description %}<meta name="description" content="{{ config.site_description }}" />{% endblock %}
		{% block keywords %}<meta name="keywords" content="{{ config.site_keywords }}" />{% endblock %}
		<link rel="icon" type="image/ico" href="/favicon.ico">
		{% block feed %}
		<link rel="alternate" type="application/rss+xml" title="{{ config.plog_title }}" href="{{ config.default_host }}{{ settings.app_root }}/feed" />
		{% endblock %}
		{% block style %}
		<link rel="stylesheet" type="text/css" href="{{ theme.dir }}/style.css" />
		{% endblock %}
		<script type="text/javascript" src="/scripts/jquery.js"></script>
		<script type="text/javascript" src="/scripts/plog.js"></script>
		<script type="text/javascript">
			<!--
			var app_root = "{{ settings.app_root }}";
			//-->
		</script>
		{% block scripts %}
		{% endblock %}
	</head>
	<body>
		<div id="wrapper">
			<div id="header">
				{% block header %}
				{% include theme.header_part %}
				{% endblock %}
			</div>

			<div id="headerbar">
				{{ self.widget.renderpart_header }}
			</div>

			<div id="menu">
				<div id="login">
					{% if self.is_login %}
					{{ self.user }} | <a href="{{ settings.app_root }}/logout">Logout</a>
					{% else %}
					<a href="{{ settings.app_root }}/login">Login</a>
					{% endif %}
				</div>

				{% block menu %}
				{% include theme.menu_part %}
				{% endblock %}
			</div>
			<div id="page">
				<div id="content">
					{% block content %}
					{% endblock %}
				</div>
				<div id="sidebar1" class="sidebar">
					<ul>
						{% block sidebar1 %}
						{{ self.widget.renderpart_sidebar1 }}
						{% endblock %}
					</ul>
				</div>
				<div id="sidebar2" class="sidebar">
					<ul>
						{% block sidebar2 %}
						{{ self.widget.renderpart_sidebar2 }}
						{% endblock %}
					</ul>
				</div>
				<br style="clear:both" />
			</div>
			<div id="footerbar">
				{{ self.widget.renderpart_footer }}
			</div>
			<div id="footer">
				{% block footer %}
				{% include theme.footer_part %}
				{% endblock %}
			</div>
		</div>
	</body>
</html>
